import { createApp } from 'vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from './stores/index'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {VueMasonryPlugin} from 'vue-masonry';
import $ from 'jquery'

import App from './App.vue'

async function start() {
    const app = createApp(App)
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
    }
    app.use(pinia)
    app.use(router)
    app.use(ElementPlus)
    app.use($)
    app.use(VueMasonryPlugin);
    app.mount('#app')
}
start()

